﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MadPropsDemo.RecipeEditor.Model;

namespace MadPropsDemo.Tests.RecipeEditorTests
{
    public class FakeRecipeService : IRecipeService
    {
        public int Save_TimesCalled;
        public RecipeDTO Save_CapturedRecipe;
        public string Save_CapturedFilename;
        public void Save(RecipeDTO recipe, string filename)
        {
            Save_TimesCalled++;
            Save_CapturedRecipe = recipe;
            Save_CapturedFilename = filename;
        }

        public int Load_TimesCalled;
        public string Load_CapturedFilename;
        public RecipeDTO Load_ReturnValue;
        public RecipeDTO Load(string filename)
        {
            Load_TimesCalled++;
            Load_CapturedFilename = filename;
            return Load_ReturnValue;
        }
    }
}
